package com.ersansiwu.springphoenix.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

@Component
@Configuration
@ConfigurationProperties(prefix = "spring.datasource.driver")
public class DatasourceDriverProperties {
    private Map<String,String> properties = new HashMap<>();

    public Properties getProperties() {
        Properties properties = new Properties();
        properties.putAll(this.properties);
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }
}
